package com.otitan.la.forest.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 菜单角色关系表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-09-15 10:34:19
 */
@Data
@ApiModel("菜单角色关系表DTO")
public class MenuRoleDTO implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID", required = true)
    @NotBlank(message = "角色ID不能为空")
    private String roleId;

    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID", required = true)
    @NotEmpty(message = "菜单ID不能为空")
    private String menuId;

    /**
     * 是否允许（yes、no）
     */
    @ApiModelProperty(value = "是否允许（yes、no）", required = true)
    @NotEmpty(message = "是否允许不能为空")
    private String isOpen;


}
